<?php
header("Content-type:text/html;charset=utf-8");
include "dbase/db.php";
$sql=mysql_query("select * from catagory order by id");
?>
<style>
    body{background: #F1F1F1;}
    .head{width:100%; border: 1px solid #ccc;height: 60px;background: #83C327;
        margin: 0;padding: 0}
    .menu{width:1000px; height:60px;margin: 0 auto;}
    ul,li{margin: 0;padding: 0}
    .menu a{text-decoration: none;color: #fff;font-weight: bold;display: block;width:60px;height: 60px;}
    .menu a:hover{background:#60AC01;text-decoration: underline }
    .menu li{list-style: none;float: left; line-height: 60px;
        width:60px;height: 60px;text-align: center}
    .menu img{float: left}
</style>
<div class="head">
    <div class="menu">
        <img src="img/1.png"/>
        <ul>
            <?php
            while($a=mysql_fetch_assoc($sql)){
                ?>
                <li>
                    <a href="catagory.php?catid=<?php echo $a['id'] ?>"><?php echo $a['catname'] ?></a>
                </li>
                <?php
            }
            ?>
        </ul>
    </div>
</div>